1085 PRINT "Descendents Charts will be Displayed."
1090 INPUT "Do you want to Print as well as to Display";REPLY$
1100 IF LEFT$(REPLY$,1)="y" OR LEFT$(REPLY$,1) ="Y"THEN PRT.SW = 1
1110 ON PRT.SW+1 GOTO 1170, 1130
1120 STOP
1130 CLS : LOCATE 21,1 : PRINT "Make sure that the Printer is On and Ready"
1140 REM
1150 LOCATE 23,1 : PRINT "Then press any key"
1160 A$ = INKEY$ : IF A$ = "" THEN 1160
1170 CLS
1180 REM Read the Parent/Child Index
1190 OPEN "a:pcindex" FOR INPUT AS #1
1200 LOCATE 4,1 : PRINT "Open the Parent/Child Index";
1210 INPUT #1, PC.COUNT
1220 FOR I = 1 TO PC.COUNT
1230 LOCATE 5,1 : PRINT "Reading Index Record #:";I;
1240 INPUT #1, PA.ID(I), CH.ID(I)
1250 NEXT I
1260 CLOSE #1
1270 REM Read the Marriage Index
1280 LOCATE 7,1 : PRINT "Open the Marriage Index";
1290 OPEN "a:mindex" FOR INPUT AS #2
1300 INPUT #2, M.COUNT
1310 FOR I = 1 TO M.COUNT
1320 LOCATE 8,1 : PRINT "Reading Marriage Index Record #:";I:
1330 INPUT #2,PERS.NO(I), M.NO(I)
1340 NEXT I
1350 CLOSE #2
1360 REM Open the Persons File
1370 LOCATE 10,1 : PRINT "Open the Persons File"
1380 OPEN "a:persfile" AS #1 LEN = 256
1390 FIELD 1, 5 AS F1$, 20 AS F2$, 30 AS F3$, 2 AS F4$, 5 AS F5$, 5 AS F6$, 5 AS F7$, 11 AS F8$, 18 AS F9$, 16 AS F10$, 16 AS F11$, 11 AS F12$, 18 AS F13$, 16 AS F14$, 16 AS F15$, 11 AS F16$, 18 AS F17$, 16 AS F18$, 16 AS F19$
1400 REM open the Marriages File
1410 LOCATE 12,1 : PRINT "Open the Marriage File"
1420 OPEN "a:marrfile" AS #2 LEN = 128
1430 FIELD 2, 5 AS M1$, 5 AS M2$, 5 AS M3$, 5 AS M4$, 11 AS M5$, 18 AS M6$, 16 AS M7$, 16 AS M8$, 45 AS M9$
1440 REM Obtain a Person Record from the User
1450 LOCATE 20,1
1460 INPUT "Enter the Record-number of a Person (0 to quit)"; PERSON
1470 IF PERSON = 0 THEN 3830
1480 IF PERSON < 1 OR PERSON > 500 THEN CLS: GOTO 1440
1490 GOTO 2090
1500 REM Reset the Printer Characteristics for next page if required.
1510 REM Don't stop. Forms are continuous, and 11 inches.
1520 RETURN
1530 REM Routine to do a Right-trim
1540 FOR J = 1 TO LEN(TEMP1$)
1550 IF RIGHT$(TEMP2$,1) = " " THEN TEMP2$ = LEFT$(TEMP2$,LEN(TEMP2$)-1) ELSE J = LEN(TEMP1$)
1560 NEXT J
1570 RETURN
1580 REM Routine to Extract Personal Information
1590 T1 = CVS(F1$)
1600 TEMP1$ = F2$ : TEMP2$ = F2$ : GOSUB 1530
1610 T2$ = TEMP2$
1620 TEMP1$ = F3$ : TEMP2$ = F3$ : GOSUB 1530
1630 T3$ = TEMP2$
1640 IF LEFT$(F4$,1) = "M" THEN T4$ = "M"
1650 IF LEFT$(F4$,1) = "F" THEN T4$ = "F"
1660 T5 = CVS(F5$)
1670 T6 = CVS(F6$)
1680 T7 = CVS(F7$)
1690 TEMP1$ = F8$ : TEMP2$ = F8$ : GOSUB 1530
1700 T8$ = TEMP2$
1710 TEMP1$ = F9$ : TEMP2$ = F9$ : GOSUB 1530
1720 T9$ = TEMP2$
1730 TEMP1$ = F10$ : TEMP2$ = F10$ : GOSUB 1530
1740 T10$ = TEMP2$
1750 TEMP1$ = F11$ : TEMP2$ = F11$ : GOSUB 1530
1760 T11$ = TEMP2$
1770 TEMP1$ = F12$ : TEMP2$ = F12$ : GOSUB 1530
1780 T12$ = TEMP2$
1790 TEMP1$ = F13$ : TEMP2$ = F13$ : GOSUB 1530
1800 T13$ = TEMP2$
1810 TEMP1$ = F14$ : TEMP2$ = F14$ : GOSUB 1530
1820 T14$ = TEMP2$
1830 TEMP1$ = F15$ : TEMP2$ = F15$ : GOSUB 1530
1840 T15$ = TEMP2$
1850 TEMP1$ = F16$ : TEMP2$ = F16$ : GOSUB 1530
1860 T16$ = TEMP2$
1870 TEMP1$ = F17$ : TEMP2$ = F17$ : GOSUB 1530
1880 T17$ = TEMP2$
1890 TEMP1$ = F18$ : TEMP2$ = F18$ : GOSUB 1530
1900 T18$ = TEMP2$
1910 TEMP1$ = F19$ : TEMP2$ = F19$ : GOSUB 1530
1920 T19$ = TEMP2$
1930 RETURN
1940 RETURN
1950 REM Extraction of Marriage Information
1960 TT1 = CVS(M1$) 'Rec.no
1970 TT2 = CVS(M2$) 'Husband
1980 TT3 = CVS(M3$) 'Wife
1990 TT4 = CVS(M4$) 'Code
2000 TEMP1$ = M5$ : TEMP2$ = M5$ : GOSUB 1530
2010 TT5$ = TEMP2$ 'Marriage Date
2020 TEMP1$ = M6$ : TEMP2$ = M6$ : GOSUB 1530
2030 TT6$ = TEMP2$ 'City
2040 TEMP1$ = M7$ : TEMP2$ = M7$ : GOSUB 1530
2050 TT7$ = TEMP2$ 'County
2060 TEMP1$ = M8$ : TEMP2$ = M8$ : GOSUB 1530
2070 TT8$ = TEMP2$ 'State
2080 RETURN
2090 REM Routine to Produce a Descendents Chart
2100 REM First of all, set all numbers to 0 and letters to -